package fun.easycode.webterminal.adapter.socket;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import fun.easycode.webterminal.common.contract.EnumeratorDeserializer;
import fun.easycode.webterminal.common.contract.EnumeratorSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

@Data
public class MessageContent implements Serializable {
    @JsonDeserialize(using = EnumeratorDeserializer.class)
    @JsonSerialize(using = EnumeratorSerializer.class)
    private MessageContentType type;
    private String content;
    private Map<String, Object> params;
}
